from configparser import *

class language:
    def __init__(self):
        with open("./resources/language/english.cfg","w")as f:
            conf = ConfigParser()
            conf.read("./resources/language/english.cfg")
            conf.add_section("face")
            conf.add_section("setting")
            conf.add_section("write")
            conf.add_section("start")
            conf.add_section("music")
            conf.set("face","start","start")
            conf.set("face", "setting", "setting")
            conf.set("face", "quit", "quit")
            conf.set("setting", "setting", "setting")
            conf.set("setting", "set_language", "system language")
            conf.set("setting", "music", "music")
            conf.set("setting", "back", "back")
            conf.set("setting", "on_off", "on|off")
            conf.set("setting", "english", "english")
            conf.set("setting", "chinese", "chinese")
            conf.set("start", "setting_write", "write setting")
            conf.set("start", "setting_language", "write language")
            conf.set("start", "write_num", "write code")
            conf.set("start", "en", "en")
            conf.set("start", "errer", "errer from code")
            conf.set("start", "jp", "jp")
            conf.set("start", "back", "back")
            conf.set("start", "start", "start write")
            conf.set("music", "music_player", "player")
            conf.set("music", "back", "back")
            conf.set("write", "endwrite", "save&over")
            conf.set("write", "save_next", "save&next")
            conf.write(f)

    def main(self):
        pass

if(__name__ == "__main__"):
    language().main()